<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');


class Tables {

	public function get_Users($_email, $_password, $_salt, $_privilegeid)
	{
		return new Users($_email, $_password, $_salt, $_privilegeid);
	}

	public function get_Privileges($_id, $_role)
	{
		return new Privileges($_id, $_role);
	}

	public function get_Markets($_id, $_country, $_city, $_address, $_category, $_usersemail)
	{
		return new Markets($_id, $_country, $_city, $_address, $_category, $_usersemail);
	}

	public function get_Comments($_id, $_comment, $_marketid, $_usersemail)
	{
		return new Comments($_id, $_comment, $_marketid, $_usersemail);
	}

}

class Users {

	public function __construct($_email, $_password, $_salt, $_privileges_id)
	{
		$Email = $_email;
		$Password = $_password;
		$Salt = $_salt;
		$Privileges_Id = $_privileges_id;
	}

	var $Email;
	var $Password;
	var $Salt;
	var $Privileges_Id;
}

class Privileges {

	public function __construct($_id, $_role)
	{
		$Id = $_id;
		$Role = $_role;
	}

	var $Id;
	var $Role;
}

class Markets {

	public function __construct($_id, $_country, $_city, $_address, $_category, $_usersemail)
	{
		$Id = $_id;
		$Country = $_country;
		$City = $_city;
		$Address = $_address;
		$Category = $_category;
		$Users_Email = $_usersemail;
	}

	var $Id;
	var $Country;
	var $City;
	var $Address;
	var $Category;
	var $Users_Email;
}

class Comments {

	public function __construct($_id, $_comment, $_marketid, $_usersemail)
	{
		$Id = $_id;
		$Comment = $_comment;
		$Market_Id = $_marketid;
		$Users_Email = $_usersemail;
	}

	var $Id;
	var $Comment;
	var $Market_Id;
	var $Users_Email;
}

?>